package com.xiaoshuidi.cloud.module.member.controller.admin.programarticle.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Schema(description = "文章新增对象")
public class MemberArticleCreateVO implements Serializable {

    private static final long serialVersionUID = -6058218615582073727L;


    @Schema(description = "ID")
    private Long id;

    @NotNull(message = "栏目ID不能为空")
    @Schema(description = "栏目ID")
    private Long programId;

    @NotNull(message = "文章名称不能为空")
    @Schema(description = "文章名称")
    private String name;

    @Schema(description = "权重")
    private Integer weight;

    @Schema(description = "文章描述")
    private String details;

    //@NotNull(message = "文章作者不能为空")
    @Schema(description = "作者")
    private String author;

  //  @NotNull(message = "文章内容不能为空")
    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "创建人名称")
    private String creatorName;
}

